import java.io.*;

import javax.swing.ImageIcon;


public class EmailCommands implements Serializable
{
	private String userName, userMessage, recipient, subject, clientsCommand, fileName, fileLocation; 
	private int arrayIndex;
	private File serverFile;
	public EmailCommands(String inputName, String inputMessage, String inputRecipient, String clientCommand, int indexID, File file, String nameOfFile)
	{
		userName = inputName;
		userMessage = inputMessage;
		recipient = inputRecipient;
		clientsCommand = clientCommand;
		arrayIndex = indexID;
		serverFile = file;
		fileName = nameOfFile;
		fileLocation = null;
	}

	public String getUsername()
	{
		return userName;		
	}
	
	public String getMessage()
	{
		return userMessage;
	}
	
	public String getRecipient()
	{
		return recipient;
	}
	
	public String clientCommand()
	{
		return clientsCommand;
	}
	
	public int arrayID()
	{
		return arrayIndex;
	}
	
	public void setClientCommand(String command)
	{
		clientsCommand = command;
	}
	
	public String fileName()
	{
		return fileName;
	}
	
	public File fileBytes()
	{
		return serverFile;
	}
	public void setFileLocation(String inFileLocation)
	{
		fileLocation = inFileLocation; 
		serverFile = null;
	}
	public String fileLocation()
	{
		return fileLocation;
	}
	public void setFile(File inputfile)
	{
		serverFile = inputfile; 	
	}
}
